﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="offer_user.aspx.cs" Inherits="lcmyjobs.Web.reward.offer_user" %>

<%@ Register Src="../Controls/TopRewardNavigation.ascx" TagName="TopRewardNavigation"
    TagPrefix="uc1" %>
<%@ Register Src="../Controls/Bottom8.ascx" TagName="Bottom8" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>悬赏求职-揭榜悬赏人才</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        //$(function () { $(".qzzx_daohang ul li a").eq(0).addClass("zgz_activ"); });
        function show() {
            var v = document.getElementById("why");
            if (v.style.display == "none") {
                v.style.display = "block";
            }
            else {
                v.style.display = "none";
            }
        }

        function openwin() {
            //alert("所谓猎手就是指悬赏求职/招聘揭榜的人。为求职者提供所需要的岗位信息，落实求职者的工作岗位，必要时给求职者进行面试指导，把合适岗位推荐给人才，并从“我就业网”获得一定劳动报酬的专业或非专业人士。为企业提供所需要的人才信息，落实企业招聘岗位，把合适人才推荐给企业，并从“我就业网”获得一定劳动报酬的专业或非专业人士。");
            var url = "../openwin/whatishunter.htm";                            //转向网页的地址;
            var name = "什么是猎手";                                             //网页名称，可为空;
            var iWidth = 350;                                                   //弹出窗口的宽度;
            var iHeight = 200;                                                  //弹出窗口的高度;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;          //获得窗口的垂直位置
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;           //获得窗口的水平位置
            //url = "../openwin/hunter.aspx";  
            window.open(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=0,titlebar=no');
            //window.showModalDialog(url, name, 'height=' + iHeight + ',innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=0,titlebar=no');
            
             }
    </script>
    <style type="text/css">
        .btnok
        {
        	background-image:url('../qimg/jiebang_back.gif');
        	border:0px;
        	width:125px;
        	height:30px;
        	}
        a{color:#ff6600;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="lo_wrap">       
        <uc1:TopRewardNavigation ID="TopRewardNavigation1" runat="server" /> 
        <div class="ny_center">
                    <div style="color: #ff6600; font-size: 14px; text-align:center; padding-top: 30px;
                        padding-bottom: 20px; font-weight:bold;">
                        感谢您加盟我就业网悬赏服务！
                    </div>
                        <div style="line-height: 25px; text-align: center; padding-bottom:20px;">
                            您已是我就业网悬赏猎手，请直接致电 0635-8251515！<br />
                            您还不是我就业网悬赏猎手，您可以填写以下内容后，直接揭榜该悬赏人才
                        </div>
            <div>
                <div>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;揭榜的悬赏人才编号：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;您推荐的职位：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtjob" runat="server" Width="114px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtjob"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;月薪待遇：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:DropDownList ID="ddlsalarym" runat="server">
                                    <asp:ListItem Value="1000">1000元以下</asp:ListItem>
                                    <asp:ListItem Value="1001-2000">1001-2000元</asp:ListItem>
                                    <asp:ListItem Value="2001-4000">2001-4000元</asp:ListItem>
                                    <asp:ListItem Value="4001-6000">4001-6000元</asp:ListItem>
                                    <asp:ListItem Value="6001-8000">6001-8000元</asp:ListItem>
                                    <asp:ListItem Value="8001-10000">8001-10000元</asp:ListItem>
                                    <asp:ListItem Value="10000">10000元以上</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;您推荐的单位：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtunit" runat="server" Width="162px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtunit"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;您的姓名：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txttruename" runat="server" Width="114px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txttruename"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;您的居民身份证：
                            </td>
                            <td height="35" width="*" align="left">
                                <asp:TextBox ID="txtofferID" runat="server" Width="162px" onblur="javascript:checkid();"></asp:TextBox>
                            </td>
                            <td height="35" width="330" align="left" style="color: #ff6600;">
                                重要！领取悬赏金的唯一有效凭证！
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;手机：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtphone" runat="server" Width="114px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtphone"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtphone"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{11}">格式不对</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="35" width="30%" align="right">
                                *&nbsp;E-mail：
                            </td>
                            <td height="35" width="*" align="left" colspan="2">
                                <asp:TextBox ID="txtemail" runat="server" Width="162px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtemail"
                                    ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtemail"
                                    ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">地址不合法</asp:RegularExpressionValidator>
                                <div id="myemail" style="float: left">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td  width="30%" align="right">
                                &nbsp;
                            </td>
                            <td height="35" width="*" align="left" style="padding:12px 0 12px 0; ">
                                <asp:CheckBox ID="chkismy" Text="  您感兴趣成为我就业网悬赏猎手" runat="server" Checked="False" />
                            </td>
                            <td height="25" width="*" align="left">
                                <!--<a href="#" style="color:#ff6600" id="what">什么是猎手?</a>-->
                                <x:PageManager ID="PageManager1" runat="server" />
                                <x:LinkButton ID="lbtn_whatishunter" runat="server" Label="什么是猎手?" Text="什么是猎手?" OnClick="whatishunter" CssStyle="color:#ff6600;"  CssClass="inline">
                                </x:LinkButton>
                                
                                
                                <div id="why" style=" display:none; width: 330px; margin-top: 10px; color: Black; line-height:22px;">
                                    <p style="color:#666666;">所谓猎手就是指悬赏求职/招聘揭榜的人。为求职者提供所需要的岗位信息，落实求职者的工作岗位，必要时给求职者进行面试指导，把合适岗位推荐给人才，并从“我就业网”获得一定劳动报酬的专业或非专业人士。
                                    为企业提供所需要的人才信息，落实企业招聘岗位，把合适人才推荐给企业，并从“我就业网”获得一定劳动报酬的专业或非专业人士。</p>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div style="margin-top: 30px; text-align:center; margin-bottom: 50px;">
                    <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="" OnClientClick="javascript:return checkid();"
                        CssClass="btnok" Style="color: #e13804;  " /></div>
            </div>
                
        <uc2:Bottom8 ID="Bottom81" runat="server" />
            </div>
        
        
        </div>
    </form>
    <script language="javascript" type="text/javascript">
        var vcity = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古",
            21: "辽宁", 22: "吉林", 23: "黑龙江", 31: "上海", 32: "江苏",
            33: "浙江", 34: "安徽", 35: "福建", 36: "江西", 37: "山东", 41: "河南",
            42: "湖北", 43: "湖南", 44: "广东", 45: "广西", 46: "海南", 50: "重庆",
            51: "四川", 52: "贵州", 53: "云南", 54: "西藏", 61: "陕西", 62: "甘肃",
            63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门", 91: "国外"
        };
        var sid = "<%=txtofferID.ClientID%>";


        function checkid() {
            var card = document.getElementById(sid).value;
            //是否为空
            if (card === '') {
                alert('请输入身份证号，身份证号不能为空');
                document.getElementById(sid).focus;
                return false;
            }
            //校验长度，类型
            if (isCardNo(card) === false) {
                alert('您输入的身份证号码不正确，请重新输入');
                document.getElementById(sid).focus;
                return false;
            }
            //检查省份
            if (checkProvince(card) === false) {
                alert('您输入的身份证号码不正确,请重新输入');
                document.getElementById(sid).focus;
                return false;
            }
            //校验生日
            if (checkBirthday(card) === false) {
                alert('您输入的身份证号码生日不正确,请重新输入');
                document.getElementById(sid).focus();
                return false;
            }
            //检验位的检测
            if (checkParity(card) === false) {
                alert('您的身份证校验位不正确,请重新输入');
                document.getElementById(sid).focus();
                return false;
            }
            return true;
        }


        //检查号码是否符合规范，包括长度，类型
        isCardNo = function (card) {
            //身份证号码为15位或者18位，15位时全为数字，18位前17位为数字，最后一位是校验位，可能为数字或字符X
            var reg = /(^\d{15}$)|(^\d{17}(\d|X)$)/;
            if (reg.test(card) === false) {
                return false;
            }

            return true;
        };

        //取身份证前两位,校验省份
        checkProvince = function (card) {
            var province = card.substr(0, 2);
            if (vcity[province] == undefined) {
                return false;
            }
            return true;
        };

        //检查生日是否正确
        checkBirthday = function (card) {
            var len = card.length;
            //身份证15位时，次序为省（3位）市（3位）年（2位）月（2位）日（2位）校验位（3位），皆为数字
            if (len == '15') {
                var re_fifteen = /^(\d{6})(\d{2})(\d{2})(\d{2})(\d{3})$/;
                var arr_data = card.match(re_fifteen);
                var year = arr_data[2];
                var month = arr_data[3];
                var day = arr_data[4];
                var birthday = new Date('19' + year + '/' + month + '/' + day);
                return verifyBirthday('19' + year, month, day, birthday);
            }
            //身份证18位时，次序为省（3位）市（3位）年（4位）月（2位）日（2位）校验位（4位），校验位末尾可能为X
            if (len == '18') {
                var re_eighteen = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/;
                var arr_data = card.match(re_eighteen);
                var year = arr_data[2];
                var month = arr_data[3];
                var day = arr_data[4];
                var birthday = new Date(year + '/' + month + '/' + day);
                return verifyBirthday(year, month, day, birthday);
            }
            return false;
        };

        //校验日期
        verifyBirthday = function (year, month, day, birthday) {
            var now = new Date();
            var now_year = now.getFullYear();
            //年月日是否合理
            if (birthday.getFullYear() == year && (birthday.getMonth() + 1) == month && birthday.getDate() == day) {
                //判断年份的范围（3岁到100岁之间)
                var time = now_year - year;
                if (time >= 3 && time <= 100) {
                    return true;
                }
                return false;
            }
            return false;
        };

        //校验位的检测
        checkParity = function (card) {
            //15位转18位
            card = changeFivteenToEighteen(card);
            var len = card.length;
            if (len == '18') {
                var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
                var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
                var cardTemp = 0, i, valnum;
                for (i = 0; i < 17; i++) {
                    cardTemp += card.substr(i, 1) * arrInt[i];
                }
                valnum = arrCh[cardTemp % 11];
                if (valnum == card.substr(17, 1)) {
                    return true;
                }
                return false;
            }
            return false;
        };

        //15位转18位身份证号
        changeFivteenToEighteen = function (card) {
            if (card.length == '15') {
                var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
                var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
                var cardTemp = 0, i;
                card = card.substr(0, 6) + '19' + card.substr(6, card.length - 6);
                for (i = 0; i < 17; i++) {
                    cardTemp += card.substr(i, 1) * arrInt[i];
                }
                card += arrCh[cardTemp % 11];
                return card;
            }
            return card;
        };
    </script>
</body>
</html>
